import { Routes } from '@angular/router';
import {HomeComponent} from "./home.component";

export const routes: Routes = [
  {
    path: '',
    redirectTo: 'home',
    pathMatch: 'full'
  },
  {
    path: 'home',
    title: '首页',
    component: HomeComponent
  },
  {
    path: 'signal',
    title: '信号量',
    loadComponent: () => import('./signal.component').then(m => m.SignalComponent),
  },
  {
    path: 'deferr',
    loadComponent: () => import('./deferr.component').then(m => m.DeferrComponent)
  },
  {
    path: 'img-optimization',
    loadComponent: () => import('./img-optimization/img-optimization.component').then(m => m.ImgOptimizationComponent)
  },
  {
    path: 'cdk',
    loadComponent: () => import('./cdk/cdk.component').then(m => m.CdkComponent)
  }
];
